LEADTOOLS Image File Support (Leadtools.Codecs assembly)
LEAD Technologies, Inc

DecodeAbic(Byte[],Int32,Int32,Int32,Boolean) Method






A byte array which contains the input data.
Number of bytes to align the uncompressed output data.
Image width, in pixels.
Image height, in pixels.
true to indicate bi-level encoding, false to indicate 4-bit grayscale encoding.
Decodes the input ABIC data using the ABIC decoder and returns raw uncompressed data. .NET support
Syntax
public byte[] DecodeAbic( 
   byte[] inputData,
   int align,
   int width,
   int height,
   bool biLevel
)
'Declaration
 
Public Overloads Function DecodeAbic( _
   ByVal inputData() As Byte, _
   ByVal align As Integer, _
   ByVal width As Integer, _
   ByVal height As Integer, _
   ByVal biLevel As Boolean _
) As Byte()
'Usage
 
Dim instance As RasterCodecs
Dim inputData() As Byte
Dim align As Integer
Dim width As Integer
Dim height As Integer
Dim biLevel As Boolean
Dim value() As Byte
 
value = instance.DecodeAbic(inputData, align, width, height, biLevel)
public byte[] DecodeAbic( 
   byte[] inputData,
   int align,
   int width,
   int height,
   bool biLevel
)
 function Leadtools.Codecs.RasterCodecs.DecodeAbic(Byte[],Int32,Int32,Int32,Boolean)( 
   inputData ,
   align ,
   width ,
   height ,
   biLevel 
)
public:
array<byte>^ DecodeAbic( 
   array<byte>^ inputData,
   int align,
   int width,
   int height,
   bool biLevel
) 

Parameters

inputData
A byte array which contains the input data.
align
Number of bytes to align the uncompressed output data.
width
Image width, in pixels.
height
Image height, in pixels.
biLevel
true to indicate bi-level encoding, false to indicate 4-bit grayscale encoding.

Return Value

A byte array that contains the raw uncompressed data.
Remarks

Call this method to decompress the input 1-bit bi-level or 4-bit grayscale ABIC data.

Use EncodeAbic(Byte[],Int32,Int32,Int32,Boolean) to encode ABIC data.

The output buffer in the Leadtools.RasterNativeBuffer object returned is allocated automatically by this method. The user is responsible to free this unmanaged memory buffer by calling Marshal.FreeHGlobal as follows:

            RasterNativeBuffer buffer = rasterCodecsObject.EncodeAbic(...
            // Use buffer
            Marshal.FreeHGlobal(buffer.Data);
            

Example
For an example, refer to EncodeAbic(Byte[],Int32,Int32,Int32,Boolean).
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterCodecs Class
RasterCodecs Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.